<%--
  Created by IntelliJ IDEA.
  User: 若兮
  Date: 2021/12/28
  Time: 15:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>职位申请详细信息</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body class="layui-anim layui-anim-downbit">
<form class="layui-form">
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">职工编号</label>
        <div class="layui-input-inline">
            <input type="text" name="eno" readonly value="${requestScope.jobChange.eno}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">员工姓名</label>
        <div class="layui-input-inline">
            <input type="text" name="ename" readonly value="${requestScope.jobChange.ename}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">当前职位</label>
        <div class="layui-input-inline">
            <input type="text" name="beforejob" readonly value="${requestScope.jobChange.beforejob}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">申请职位</label>
        <div class="layui-input-inline">
            <input type="text" name="afterjob" readonly value="${requestScope.jobChange.afterjob}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">申请原由</label>
        <div class="layui-input-inline">
            <input type="text" name="reason" readonly value="${requestScope.jobChange.reason}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">申请时间</label>
        <div class="layui-input-inline">
            <input type="text" name="date" readonly value="${requestScope.jobChange.date}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-form-item">
            <a type="button" class="layui-btn" href="${pageContext.request.contextPath}/checkJobChange?eno=${requestScope.jobChange.eno}&afterjob=${requestScope.jobChange.afterjob}&state=0" style="margin-left: 20px;margin-top: 10px;text-decoration: none">通过</a>
            <a type="button" onclick="return jobchange_fail();" class="layui-btn layui-btn-danger" href="${pageContext.request.contextPath}/checkJobChange?eno=${requestScope.jobChange.eno}" style="margin-top: 10px;text-decoration: none">不通过</a>
            <a class="layui-btn" href="${pageContext.request.contextPath}/showAllJobChangeByPage" style="margin-top: 10px;text-decoration: none">返回</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="js/jquery-3.6.0.js"></script>
<script type="text/javascript" src="layui/layui.js"></script>
<script type="text/javascript">
    function jobchange_fail() {
        var msg = "真的要拒绝吗？";
        return confirm(msg) === true;
    }
</script>
</body>
</html>
